package com.qfedu.mapper;

import com.qfedu.entity.ShopCarEntity;
import com.qfedu.pojo.GoodsPojo;
import com.qfedu.pojo.ShopCarPojo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ShopCarPojoMapper {
    public Boolean insertShopCar(ShopCarPojo shopCarPojo);
    //为购物车添加商品
    public Boolean insertShopcarAndGoods(Map<String,Object> map);
    //查询购物车
    public ShopCarEntity queryShopCar(@Param("cid") int cid);
    //删除当前购物车商品
    public Boolean deleteByShopid(@Param("scid") int scid);
    //更新购物车商品
    public Boolean updateShopcar(Map<String,Object> map);
    //删除购物车的某个商品
    public Boolean deleteGoods(@Param("gid") String gid,@Param("scid") int scid);

}
